/**
 * Toast 消息组件样式
 * 作者: 陈祖豪
 * 邮箱: 3469807212@qq.com
 * 开发时间: 2024年11月30日
 **/
 
/* Toast 容器 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Toast 基础样式 */
.toast {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    min-width: 200px;
    max-width: 400px;
}

/* Toast 显示状态 */
.toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* Toast 图标 */
.toast i {
    margin-right: 8px;
    font-size: 18px;
}

/* Toast 文本 */
.toast span {
    font-size: 14px;
    line-height: 1.4;
}

/* Toast 类型样式 */
.toast-success {
    background: #e3f8e3;
    color: #18a518;
    border-left: 4px solid #18a518;
}

.toast-error {
    background: #ffe8e8;
    color: #e74c3c;
    border-left: 4px solid #e74c3c;
}

.toast-warning {
    background: #fff8e8;
    color: #f1c40f;
    border-left: 4px solid #f1c40f;
}

.toast-info {
    background: #e8f4ff;
    color: #3498db;
    border-left: 4px solid #3498db;
}

/* 深色主题样式 */
[data-theme="dark"] .toast {
    background: #2d3748;
}

[data-theme="dark"] .toast-success {
    background: #1a472a;
    color: #4ade80;
}

[data-theme="dark"] .toast-error {
    background: #4a2828;
    color: #f87171;
}

[data-theme="dark"] .toast-warning {
    background: #4a3f28;
    color: #fbbf24;
}

[data-theme="dark"] .toast-info {
    background: #1e3a5f;
    color: #60a5fa;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .toast-container {
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
    }

    .toast {
        width: 100%;
        max-width: none;
    }
}